package yztc.com.shiyuanbaoyou;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

/**
 * Created by My on 2016/9/22.
 */
public class GuideActivity extends Activity {
    private static final long SPLASH_DELAY_MILLIONS=2000;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_guide);
        new Handler().postDelayed(new Runnable() {
            @Override
            public void run() {
                goHome();
            }
        },SPLASH_DELAY_MILLIONS);
    }

    private void goHome() {
        Intent intent=new Intent(GuideActivity.this,MainActivity.class);
        GuideActivity.this.startActivity(intent);
        GuideActivity.this.finish();
    }
}
